package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销奖励对象 mak_award
 *
 * @author weixiao
 * @date 2023-01-27
 */
@TableName("mak_award")
public class Award extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 奖励id */
    @Excel(name = "奖励id")
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 奖励名称 */
    @Excel(name = "奖励名称")
    @TableField("rname")
    private String rname;

    /** 是否关联库存商品（0，是；1，否） */
    @Excel(name = "是否关联库存商品", readConverterExp = "0=，是；1，否")
    @TableField("goods")
    private String goods;

    /** 获奖概率 */
    @Excel(name = "获奖概率")
    @TableField("probability")
    private String probability;

    /** 图片 */
    @Excel(name = "图片")
    @TableField("image")
    private String image;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRname(String rname)
    {
        this.rname = rname;
    }

    public String getRname()
    {
        return rname;
    }
    public void setGoods(String goods)
    {
        this.goods = goods;
    }

    public String getGoods()
    {
        return goods;
    }
    public void setProbability(String probability)
    {
        this.probability = probability;
    }

    public String getProbability()
    {
        return probability;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("rname", getRname())
            .append("goods", getGoods())
            .append("probability", getProbability())
            .append("image", getImage())
            .toString();
    }
}
